module.exports = {
  testEnvironment: 'jsdom',
  roots: ['<rootDir>'],
  transform: {
  '^.+\\.vue$': 'vue3-jest',
  '^.+\\.js$': 'babel-jest'
   },
  moduleFileExtensions: ['vue', 'js', 'json', 'jsx', 'ts', 'tsx', 'node'],
  testMatch: [
    '**/tests/**/*.test.js',
    '**/tests/**/*.spec.js'
    ],
  collectCoverage: true,
  collectCoverageFrom: [
      '**/*.{js,vue}',
      '!**/node_modules/**',
      '!**/App.vue',
      '!**/main.js',
      '!**/router.js',
      '!*.config.js',
      '!.eslintrc.js',
    ],
    coverageReporters: [
      'html',
      'text-summary',
    ],
    coveragePathIgnorePatterns: [
      '<rootdir>/coverage',
      '<rootdir>/tests',
      'babel.config.js',
    ],
  }